package com.saturn.titan.core.bean.extend;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.saturn.titan.core.bean.RechargeRecord;
import com.saturn.titan.core.repository.mybatis.annotations.DbRangeQueryField;
import com.saturn.titan.core.repository.mybatis.base.RangeQueryType;

public class RechargeRecordQuery extends RechargeRecord {

	private static final long serialVersionUID = 1L;
	
	@DbRangeQueryField(column="cRemain",type=RangeQueryType.FROMEQUAL)
	private Double remainForm;
	
	@DbRangeQueryField(column="cRemain",type=RangeQueryType.TOEQUAL)
	private Double remainTo;
	
	@DbRangeQueryField(column="dtTime",type=RangeQueryType.FROMEQUAL)
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+08:00")
	private Date dtTimeFrom;
	
	@DbRangeQueryField(column="dtTime",type=RangeQueryType.TOEQUAL)
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+08:00")
	private Date dtTimeTo;

	public Double getRemainForm() {
		return remainForm;
	}

	public void setRemainForm(Double remainForm) {
		this.remainForm = remainForm;
	}

	public Double getRemainTo() {
		return remainTo;
	}

	public void setRemainTo(Double remainTo) {
		this.remainTo = remainTo;
	}

	public Date getDtTimeFrom() {
		return dtTimeFrom;
	}

	public void setDtTimeFrom(Date dtTimeFrom) {
		this.dtTimeFrom = dtTimeFrom;
	}

	public Date getDtTimeTo() {
		return dtTimeTo;
	}

	public void setDtTimeTo(Date dtTimeTo) {
		this.dtTimeTo = dtTimeTo;
	}
}
